package cl.smartdev.soagovernance.modelo;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.OneToMany;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class NodoIntegracion {

    /**
     */
    @NotNull
    private String nombre;

    /**
     */
    @ManyToOne
    private Servidor servidor;

    /**
     */
    @OneToMany(cascade = CascadeType.ALL)
    private Set<ServidorIntegracion> servidoresIntegracion = new HashSet<ServidorIntegracion>();

    /**
     */
    @ManyToOne
    private Ambiente ambiente;
}
